<template>
    	<div class="headerbox">
        <div class="header">
            <van-nav-bar title="分销会员" left-text="" left-arrow @click-left="goBack" />
            <div class="headerR"></div>
        </div>
    </div>
	<div class="clear"></div>
    <div class="h50"></div>
	<div class="retailmember" v-for="item in list" :key="item.id">
		<div class="item">
            <div class="left">
                <div class="img">
                    <img :src="item.avatar_text" alt="">
                </div>
                <div class="content">
                    <div class="nickname">{{ item.nickname }}</div>
                    <div class="tel">{{item.mobile}}</div>
                </div>
            </div>
            <div class="right">2024-04-25</div>
        </div>
        </div>
</template>
<script setup>
import { ref } from 'vue';

const { proxy } = getCurrentInstance()
const LoginUser = reactive(proxy.$cookies.get('LoginUser'));
const list=ref('')
const goBack = () => {
    proxy.$router.go(-1)
}
onBeforeMount(() => {
    getmember()
})
const getmember=async ()=>{
    let result=await Api.member({
        limit:10,
        page:1,
        busid:LoginUser.id??0
    })
    
    if(result.code==1){
        list.value=result.data.list
        console.log(list.value)
    }
    console.log(result)
}
</script>
<style>
@import url('/assets/css/retailmember.css');
</style>